package com.zhang.gulimall.search.vo;

import com.zhang.gulimall.common.to.es.SkuEsModel;
import lombok.Data;

import java.util.List;

@Data
public class MySearchResult {

    private List<SkuEsModel> products;
    // 当前页码
    private Integer pageNum;
    // 总记录数
    private Long totalCount;
    // 总页码
    private Integer totalPages;
    // 页码
    private List<Integer> pageNav;
    // 品牌
    private List<BrandVo> brands;
    // 属性
    private List<AttrVo> attrs;
    // 分类
    private List<CatalogVo> catalogs;
    // 面包屑导航
    private List<Navs> navs;

    @Data
    public static class Navs{
        private String navId;
        private String navName;
        private String navValue;
    }


    @Data
    public static class BrandVo{
        private String brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class AttrVo{
        private String attrId;
        private String attrName;
        private List<String> attrValue;
    }

    @Data
    public static class CatalogVo{
        private String catalogId;
        private String catalogName;
    }
}
